﻿Public Class ucCheckPermission
    Inherits System.Web.UI.UserControl

	Dim mUnitID As String
	Public Property UnitID As String
		Get
			Return mUnitID
		End Get
		Set(ByVal value As String)
			mUnitID = value
		End Set
	End Property

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
		'If Not Page.IsPostBack Then

		'	If GlobalApp.Authen IsNot Nothing Then
		'		If Not BL.Authentication.CheckPermissionAccessUnit(GlobalApp.Authen.user_id, Me.UnitID) Then
		'			Response.Redirect("~/AccessDenied.aspx")
		'		End If
		'	End If

		'End If
    End Sub

End Class